package edu.sctu.renpingan.day20150518;


import java.util.ArrayList;
import java.util.List;

/**
 * Created by user18 on 2015/5/18.
 */
public class TextData {

    Teacher[] teaChar = new Teacher[2];

    public Teacher[] getTeaChar(){
        Teacher teaChar1 = new Teacher();


        teaChar1.age = 25;
        teaChar1.name = "张三";
        teaChar1.number = 1407;
        teaChar1.object = "语文";
        teaChar1.sex = "男";
        teaChar1.work = "教授";

        Student[] students = new Student[3];

        for (int i = 0; i < students.length; i++) {

            Student student = new Student();

            student.adress = "广元";
            student.age = 18;
            student.grade = 90-i;
            student.name = "大海"+i;
            student.number = 1111;
            student.sex = "男";
            TextCourse textcours =  new TextCourse();
            textcours.course1 = "语文";
            textcours.course2 = "数学";

            student.textcours = textcours;


            students[i] = student;

        }
        teaChar1.student = students;

        Teacher teaChar2 = new Teacher();
        teaChar2.age = 25;
        teaChar2.name = "李四";
        teaChar2.number = 1406;
        teaChar2.object = "数学";
        teaChar2.sex = "女";
        teaChar2.work = "副教授";

        Student[] students1 = new Student[3];

        for (int i = 0; i < students1.length; i++) {

            Student student = new Student();

            student.adress = "广元"+i;
            student.age = 18+i;
            student.grade = 85-i+1;
            student.name = "大海"+i+i;
            student.number = 1111+i;
            student.sex = "男";
            TextCourse textcours =  new TextCourse();
            textcours.course1 = "语文";
            textcours.course2 = "物理";
            student.textcours = textcours;

            students1[i] = student;
        }
        teaChar2.student = students1;

        teaChar[0] = teaChar1;
        teaChar[1] = teaChar2;
        return teaChar;

    }



}
